
/***************************************************************
 *
 * Filename：FileReveWindow.cpp
 * Abstract：the design of chatting window
 * version ：1.0
 *
 * Copyright (c) 2011 SCUT DT&P FY&XC
 *
***************************************************************/

#include "FileReveWindow.h"

FileReveWindow::FileReveWindow()
{
    //resize(360,220);
    //setMinimumSize(360,220);
    //setMaximumSize(360,220);
    setWindowTitle(tr("Reve File"));

    fileRWD = new QWidget(this);
    fileRWD->resize(550,220);
    initialize();

    exitButton = new QPushButton();
    exitButton->setText(tr("exit"));
    connect(exitButton,SIGNAL(clicked()),this,SLOT(slotexit()));
    filewindow()->setVisible(true);
    QVBoxLayout *mainlayout = new QVBoxLayout();
    //mainlayout->addSpacing(10);
    mainlayout->addWidget(filewindow());
    mainlayout->addSpacing(20);
    //mainlayout->addLayout(bottomlayout);
    mainlayout->addWidget(exitButton);

    fileRWD->setLayout(mainlayout);
    //fileRWD->show();

}

// 退出
void FileReveWindow::slotexit()
{
    close();
}
